<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>鼠标进出</title>
    <link rel="stylesheet" href="style.css">
    <style>
        #box {
            width: 100px;
            height: 100px;
            background-color: #ec63ff;
        }
    </style>
</head>
<body>
<div id="box" onmouseover="moveOver()" onmouseout="mouseOut()">

</div>
<div id="box1"></div>
<div id="box2"></div>
</body>
<script src="demo.js"></script>
</html>